package com.sean.learnelasticsearch.mapper;

import com.sean.learnelasticsearch.entity.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.annotations.Query;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 描述
 *
 * @author 林思瀚 (linsihan@cndatacom.com)
 * @date 2023-09-22 12:00:23
 */
@Repository
public interface ArticleEsRepository extends ElasticsearchRepository<Article, Long> {
    Page<Article> findByTitleOrContext(String title, String context, Pageable pageable);
}
